import requests




class Father:
    #
    def play(self):
        print("this is father play...")

# 子类的继承：寻找成员时优先在当前类寻找，否则从左往右依次寻找，直到找到为止。存在则放弃继续寻找
class Son(Father):
    # 初始化方法：类被实例化时python内部自动调用该方法
    def __init__(self,username):
        self.username = username

    def play(self):
        print("this is son {} play...".format(self.username))

son = Son("李进");
son.play()